<?php 
    include_once('../public/index.php');
     $config = include_once('../../public/config/config.php');
     include_once('../../public/func/db.php');
     $table = 'kinds';
     $where = 'where id = '.$_GET['id'];
     $res = select($config,$table,$where);
?>
<div class="main-wrap">
    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/admin/index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/admin/kinds/kinds.php">分类管理</a><span class="crumb-step">&gt;</span><span>更改分类</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/kinds/doupdatekinds.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>类别：</th>
                                <td>
                                    <input type="hidden" name="id" value="<?php echo $res[0]['id']?>">
                                    <input class="common-text required" name="category" size="50" type="text"
                                    value="<?php echo $res[0]['category']?>">
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>